﻿namespace Jhong.FunMVCBlog
{
    using Jhong.FunMVC;

    public class Routes : IRoutes
    {
        public void RegisterRoutes()
        {
            RouteTable.MapRoute(
                    name: null,
                    url: "{controller}/{action}/{id}/{id2}",
                    defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional, id2 = UrlParameter.Optional }
                );
            RouteTable.MapRoute(
                    name: null,
                    url: "{controller}/{action}/{id}",
                    defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
                );
            RouteTable.MapRoute(
                    name: null,
                    url: "{controller}/{action}",
                    defaults: new { controller = "Home", action = "Index" }
                );
            RouteTable.MapRoute(
                    name: null,
                    url: "",
                    defaults: new { controller = "Home", action = "Index" }
                );
        }
    }
}